package sms

import (
	"github.com/gin-gonic/gin"
	apis "vrcm/src/vrcm/app/admin/apis/sms"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerSmsRouter)
}

// registerSmsRouter
func registerSmsRouter(v1 *gin.RouterGroup) {
	api := apis.Sms{}
	r := v1.Group("/sms")
	{
		r.POST("/send-sms-code", api.SendSmsCode)
		r.POST("/check-sms-code", api.CheckSmsCode)
	}
}
